#include "StdAfx.h"
#include "Point.h"

P::P(void)
{
	x = 0.0;
	y = 0.0;
	z = 0.0;
}

P::~P(void)
{
}

P::P(double newx, double newy, double newz) {
	x = newx;
	y = newy;
	z = newz;
}


bool P::operator == (const P & p) const{
	return p.x == x && p.y == y && p.z == z;
}

bool P::operator != (const P & p)const {
	if (p.x == x && p.y == y && p.z == z)
		return false;
	return true;
}
P & P::operator = (const P & p) {
	x = p.x;
	y = p.y;
	z = p.z;
	return * this;
}
P P::getNull() {
	P p;
	p.x = 0.0;
	p.y = 0.0;
	p.z = 0.0;
	return p;
}

bool P::isNull() {
	if (x == 0.0 && y == 0.0 && z == 0.0)
		return true;
	return false;
}